home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 1 / Amiga Tools.iso / egs-tools / egs_dev-disk / egsincludes / egb / gbview.h < prev   
Encoding:
C/C++ Source or Header  |  1994-06-06  |  2.1 KB  |  79 lines

  1. #ifndef EGS_EGB_GBVIEW_H
  2. #define EGS_EGB_GBVIEW_H
  3.  
  4. /***************************************************************************\
  5. *
  6. *  $
  7. *  $ FILE     : gbview.h
  8. *  $ VERSION  : 1
  9. *  $ REVISION : 5
  10. *  $ DATE     : 08-Dec-93 12:50
  11. *  $
  12. *  $ Author   : mvk
  13. *  $
  14. *
  15. *****************************************************************************
  16. *                                                                           *
  17. * (c) Copyright 1990/94 VIONA Development                                   *
  18. *     All Rights Reserved                                                   *
  19. *                                                                           *
  20. \***************************************************************************/
  21.  
  22. #ifndef         EXEC_TYPES_H
  23. #include        <exec/types.h>
  24. #endif
  25. #ifndef         EGS_EGSINTUI_H
  26. #include        <egs/egsintui.h>
  27. #endif
  28. #ifndef         EGS_EGSGADBOX_H
  29. #include        <egs/egsgadbox.h>
  30. #endif
  31.  
  32. #define EGB_ViewType "VIEW"
  33.  
  34. #define EGB_ViewScrollLeft    0x00000001
  35. #define EGB_ViewScrollRight   0x00000002
  36. #define EGB_ViewScrollTop     0x00000004
  37. #define EGB_ViewScrollBottom  0x00000008
  38. #define EGB_ViewScrollArrows  0x00000010
  39. #define EGB_ViewDoNotScroll   0x00000020
  40.  
  41.  
  42. struct EGB_ViewInfo {
  43.           APTR                    Call;
  44.           APTR                    Data;
  45.           WORD                    Width,Height;
  46.           WORD                    Zoom;
  47.           WORD                    Pad;
  48. };
  49.  
  50. typedef struct EGB_ViewInfo *EGB_ViewInfoPtr;
  51.  
  52.  
  53. struct EGB_ViewGadget {
  54.        struct EI_MasterGadget  Master;
  55.        ULONG                   VFlags;
  56.        EI_PropGadPtr           HProp;
  57.        EI_PropGadPtr           VProp;
  58.        WORD                    DispX;
  59.        WORD                    DispY;
  60.        EI_MasterGadPtr         Box;
  61.        EB_GadContext           Con;
  62.        EGB_ViewInfoPtr         Info;
  63. };
  64.  
  65. typedef struct EGB_ViewGadget *EGB_ViewGadPtr;
  66.  
  67. struct EGB_FillData {
  68.           EG_RastPortPtr          RPort;
  69.           EGB_ViewGadPtr          Gad;
  70.        WORD                    Sx,Sy;
  71.        WORD                    W,H;
  72.        WORD                    Dx,Dy;
  73. };
  74.  
  75. typedef struct EGB_FillData *EGB_FillDataPtr;
  76.  
  77. #endif /* EGS_EGB_GBVIEW_H */
  78.  
  79.